package com.qyhl.module_practice.activity.detail.comment;


import com.qyhl.webtv.commonlib.entity.civilized.PracticeCommentBean;
import com.qyhl.webtv.commonlib.entity.civilized.PracticeVolunteerBean;

import java.util.List;

public class PracticeActCommentPresenter implements PracticeActCommentContract.PracticeActCommentPresenter {
    private PracticeActCommentActivity mView;
    private PracticeActCommentModel mModel;

    PracticeActCommentPresenter(PracticeActCommentActivity mView) {
        this.mView = mView;
        this.mModel = new PracticeActCommentModel(this);
    }

    @Override
    public void getCommentList(String actId, String page) {
        mModel.getCommentList(actId, page);
    }

    @Override
    public void addComment(String actId, String phone, String content) {
        mModel.addComment(actId, phone, content);
    }

    @Override
    public void getVolInfo(String phone) {
        mModel.getVolInfo(phone);
    }

    @Override
    public void commentError(String msg) {
        mView.commentError(msg);
    }

    @Override
    public void commentSuccess(String msg) {
        mView.commentSuccess(msg);
    }

    @Override
    public void setCommentList(List<PracticeCommentBean> beanList, boolean isMore) {
        mView.setCommentList(beanList, isMore);
    }

    @Override
    public void setCommentError(String msg, boolean isMore) {
        mView.setCommentError(msg, isMore);
    }

    @Override
    public void setVolInfo(PracticeVolunteerBean bean) {
        mView.setVolInfo(bean);
    }
}
